package com.xinyue.game.logic.frame;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
@Configuration
@ConfigurationProperties(prefix="xinyue.game.server.config")
public class BusinessServerConfig {
	/** 业务处理请求消息的线程数 */
    private int logicThreads = 4;//业务处理线程数
    /** db处理线程数 ,默认是cpu的核数*/
    private int dbThreads = Runtime.getRuntime().availableProcessors();
    /** 处理从网关消息队列接收的消息的线程数 */
    private int gatewayConsumeThreads = 2;

    public int getGatewayConsumeThreads() {
        return gatewayConsumeThreads;
    }
    public void setGatewayConsumeThreads(int gatewayConsumeThreads) {
        this.gatewayConsumeThreads = gatewayConsumeThreads;
    }
    public int getDbThreads() {
        return dbThreads;
    }
    public void setDbThreads(int dbThreads) {
        this.dbThreads = dbThreads;
    }
    public int getLogicThreads() {
        return logicThreads;
    }
    public void setLogicThreads(int logicThreads) {
        this.logicThreads = logicThreads;
    }
}
